package rest;

/**
 * Created by liuzesen on 16/1/15.
 */
public class Config
{
    private final static Config INSTANCE = new Config();
    private String scriptPath = "";
    private long timeInterval = 30;
    private int port = 8080;
    private String filePath = "/tmp/runScript";
    //private String filePath = "D:\\runScript";

    private Config()
    {
    }

    public static Config getInstance()
    {
        return INSTANCE;
    }

    public String getScriptPath()
    {
        return scriptPath;
    }

    public Config setScriptPath(String scriptPath)
    {
        this.scriptPath = scriptPath;
        return this;
    }

    public long getTimeInterval()
    {
        return timeInterval;
    }

    public Config setTimeInterval(long timeInterval)
    {
        this.timeInterval = timeInterval;
        return this;
    }

    public int getPort()
    {
        return port;
    }

    public Config setPort(int port)
    {
        this.port = port;
        return this;
    }

    public String getFilePath()
    {
        return filePath;
    }
}
